package com.jadesoft.stock.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class StockPrice {
	/**
	 * 6015181,601518,吉林高速,3.98,4.07, 4.13,4.19,3.94,33497,828936,
	 * 0.15,3.77%,4.04,6.28%,-15.10%, -6430,295,357110,471826,1,
	 * -1,-0.72%,7.65,13.45%,13.55,
	 * 001148|002421|003501|003552|003593,4.14,4.15,2011-05-04 15:03:05,0,
	 * 616396393" 序号 代码 名称 相关资讯 最新价 涨跌额 涨跌幅 振幅 成交量(手) 成交额(万) 昨收 今开 最高 最低 5分钟涨跌
	 * 加自选 601518 吉林高速吧 资讯 档案 4.13 0.15 3.77% 6.28% 828936 33497 3.98 4.07 4.19
	 * 3.94 -0.72% 1 2 ['no','代码','名称','昨收','今开',
	 * '最新','最高','最低','成交额(万)','成交量(手)', '涨跌额','涨跌幅','no','振幅',]
	 */
	private Long id;
	private String symbol;
	private String name;
	private Double prevClose;
	private Double open;
	private Double lastTrade;
	private Double highest;
	private Double lowest;
	private Double turnover;// 成交额(万)
	private Integer volume;// 成交量(手)
	private String changed;// 涨跌额  change是MYSQL的保留字段
	private String changePer;// 涨跌幅
	private String swing;// 振幅
	private Date achieveDate;// 获取的日期

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrevClose() {
		return prevClose;
	}

	public void setPrevClose(Double prevClose) {
		this.prevClose = prevClose;
	}

	public Double getOpen() {
		return open;
	}

	public void setOpen(Double open) {
		this.open = open;
	}

	public Double getLastTrade() {
		return lastTrade;
	}

	public void setLastTrade(Double lastTrade) {
		this.lastTrade = lastTrade;
	}

	public Double getHighest() {
		return highest;
	}

	public void setHighest(Double highest) {
		this.highest = highest;
	}

	public Double getLowest() {
		return lowest;
	}

	public void setLowest(Double lowest) {
		this.lowest = lowest;
	}

	public Double getTurnover() {
		return turnover;
	}

	public void setTurnover(Double turnover) {
		this.turnover = turnover;
	}

	public Integer getVolume() {
		return volume;
	}

	public void setVolume(Integer volume) {
		this.volume = volume;
	}

	public String getChanged() {
		return changed;
	}

	public void setChanged(String changed) {
		this.changed = changed;
	}

	public String getChangePer() {
		return changePer;
	}

	public void setChangePer(String changePer) {
		this.changePer = changePer;
	}

	public String getSwing() {
		return swing;
	}

	public void setSwing(String swing) {
		this.swing = swing;
	}


	public Date getAchieveDate() {
		return achieveDate;
	}

	public void setAchieveDate(Date achieveDate) {
		this.achieveDate = achieveDate;
	}

	public static void main(String[] args) throws Exception{
		String d = "2011-05-04 15:03:05";
		SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		System.out.println(f.format(f.parse(d)));
	}

	
	
}
